package com.fullstackdaytwo.registerlogin.enums;

/**
 * @Description:
 * @author: Aron
 * @date: 2021.10.14
 */
public enum RoleEnum {
    /**
     * 管理员角色枚举
     */
    ADMIN("管理员", 0),
    /**
     * 登顾客角色枚举
     */
    CUSTOMER("顾客", 1);

    private final String role;
    private final int code;

    RoleEnum(String role, int code) {
        this.role = role;
        this.code = code;
    }

    public String getRole() {
        return role;
    }

    public int getCode() {
        return code;
    }

    @Override
    public String toString() {
        return "RoleEnum{" +
                "role='" + role + '\'' +
                ", code=" + code +
                '}';
    }
}
